<div class="container" ng-controller="z-login-c">
	<div id="login" class="animated bounceIn login_body">
		<div class="form-signin">
			<form id="login-form" name="loginForm" method="post">
				<img id="logo" src="static/css/images/logo.png" alt="sprFlat Logo" draggable="false"> 
		            <div class="login-wrapper">
		                <div id="myTabContent" class="tab-content bn">
		                    <div class="tab-pane fade active in" id="log-in">
		                        <div class="seperator">
		                            <strong>HR考勤管理系统</strong>
		                        </div>
		                        <div class="contentLogin" 
		                        	 ng-show="loginModel.passwordType==true"
		                        	 ng-hide="loginModel.passwordType==false">
			                        	 <div class="form-group">
			                                <div class="col-lg-12">
			                                	<div class="col-md-12 form-item">
													 <input class="form-control"  name="oldpw" type="password" placeholder="旧密码" 
															ng-model="loginModel.oldPassword" maxLength="20">
												</div>
			                                </div>
			                            </div>
			                            <div class="form-group">
			                                <div class="col-lg-12">
					                            <div class="col-md-12 form-item">
														<input class="form-control" name="newpw" type="password" placeholder="新密码"
															   ng-model="loginModel.newPassword" maxLength="20">
												</div>
											</div>
										</div>
										<div class="form-group">
			                                <div class="col-lg-12">
												<div class="col-md-12 form-item">
														<input class="form-control" name="confirmpw" type="password" placeholder="再次输入新密码" 
															   ng-model="loginModel.confirmPassword" maxLength="20">
												</div>
											</div>
										</div>
										<div class="form-group">
											<div class="col-lg-6 col-md-6 col-sm-6 col-xs-8 md"></div>
			                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-4 md">
			                                    <button class="btn btn-primary pull-right" type="button" ng-click="loginModel.saveOn()">保存</button>
			                                </div>
			                            </div>
			                            <div class="errorLogin">
			                            	<div class="col-lg-12 col-md-6 col-sm-12 col-xs-12">
			                            	 	<div ng-hide="loginModel.hideAlertPass" class="alert alert-danger" role="alert">{{loginModel.alertDangerPassText}}</div>
			                            	</div>
			                            </div>
		                        </div>
		                        <div class="contentLogin" 
		                        	 ng-show="loginModel.forgetType==true"
		                        	 ng-hide="loginModel.forgetType==false">
			                        	 <div class="form-group">
			                                <div class="col-lg-12">
			                                	<div class="col-md-12 form-item">
													 <input class="form-control"  name="mail" placeholder="员工邮箱" 
															ng-model="loginModel.mail">
												</div>
			                                </div>
			                            </div>
										<div class="form-group">
											<div class="col-lg-6 col-md-6 col-sm-6 col-xs-8 md"></div>
			                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-4 md">
			                                	<button class="btn btn-default" ng-click="loginModel.forgetReturn()">返回</button>
			                                    <button class="btn btn-primary pull-right" type="button" ng-click="loginModel.sendMail()">发送邮箱</button>
			                                </div>
			                            </div>
		                        </div>
		                        <div class="contentLogin" 
		                        	 ng-show="loginModel.logonType==true"
		                        	 ng-hide="loginModel.logonType==false">
		                        		<div class="form-group">
			                                <div class="col-lg-12">
			                                	<div ng-class="{ 'has-error' : loginForm.name.$invalid && !loginForm.name.$pristine}">
				                                    <input type="text" 
				                                    	   name="name" 
				                                    	   class="form-control left-icon" 
				                                    	   placeholder="账号" 
				                                    	   ng-model="loginModel.loginName"
				                                    	   ng-keyup="loginModel.myKeyup($event)"
				                                    	   required>
				                                    <i class="ec-user s16 left-input-icon"></i>
			                                    </div>
			                                </div>
			                            </div>
			                            <div class="form-group">
			                                <div class="col-lg-12">
			                                	<div ng-class="{ 'has-error' :loginForm.pw.$invalid && ! loginForm.pw.$pristine}">
				                                    <input type="password" 
				                                    	   name="pw" 
				                                    	   class="form-control left-icon" 
				                                    	   placeholder="密码" 
				                                    	   ng-model="loginModel.password"
				                                    	   ng-keyup="loginModel.myKeyup($event)"
				                                    	   required>
				                                    <i class="ec-locked s16 left-input-icon"></i>
			                                    </div>
			                                </div>
			                            </div>
			                            <div class="form-group">
			                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-8 md">
			                                    <input type="checkbox" ng-model="loginModel.remberPassword">记住密码
			                                </div>
			                                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-4 md">
			                                    <button class="btn btn-primary " ng-click="loginModel.login()" >登录</button>
			                                    <button class="btn btn-warning pull-right" ng-click="loginModel.forget()">忘记密码</button>
			                                    <input type="hidden" name="CSRFToken" value="{{loginModel.CSRFToken}}"></input>  
			                                </div>
			                            </div>
			                            <div class="errorLogin">
			                            	<div class="col-lg-12 col-md-6 col-sm-12 col-xs-12">
			                            	 	<div ng-hide="loginModel.hideAlert" class="alert alert-danger" role="alert">{{loginModel.alertDangerText}}</div>
			                            	</div>
			                            </div>
		                        </div>
		                    </div>
		                </div>
		            </div>
			</form>
		</div>
	</div>	
</div>
<!-- /container -->
